let push = {}

/**
 * uni-app客户端获取push客户端标记
 * @date 2023-03-13
 */
push.getPushClientId = function() {
	return new Promise((resolve, reject) => {
		uni.getPushClientId({
			success: (res) => {
				console.log('client_id '+res.cid)
				resolve({
					client_id: res.cid
				})
			},
			fail(err) {
				console.log('获取客户端标识失败', err)
				resolve({
					client_id: ''
				})
			}
		})
	})
}


export default push
